package top.tocchen.bookshop.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 *
 * 配置404和500页面
 *
 * @author tocchen
 * @date 2022/8/10 11:46
 * @since jdk 1.8
 **/
@Controller
@RequestMapping("/error")
public class ErrorController {
    @GetMapping("/404")
    public String page404(){
        return "404";
    }

    @GetMapping("/500")
    public String page500(){
        return "500";
    }
}
